<template>
  <div>
    小红的成绩：
    <p>语文：{{score1}}</p>
    <p>数学：{{score2}}</p>
    <p>总成绩:{{totalScore}}</p>
  </div>
</template>

<script>
export default {
  name: 'VueMedoApp',

  data() {
    return {
      score1:90,
      score2:100
    };
  },
  computed:{
    totalScore(){
      return this.score1+this.score2
    }
  }
};
</script>

<style lang="scss" scoped>

</style>